<template>
	<view>
		<my-clock-in :item="dailyTaskList"></my-clock-in>
	</view>
</template>

<script>
import myClockIn from '../../../component/myClockIn.vue';
import moment from 'moment';
moment.locale('zh-cn');
export default {
	components: {
		myClockIn
	},
	data() {
		return {
			dailyTaskList:{},//我的日历打卡
		};
	},
	onLoad(option) {
		//console.log(option.Datetime)
		this.dateTime = option.Datetime;	
	},
	mounted() {
	  this.getMineClock();
	},
	methods: {
		getMineClock() {
			//查找我的所有打卡
			this.request({
                url:this.apiServer+'/task/findDailyTaskByCreateTime?uId='+uni.getStorageSync("user").id+'&createTime='+this.dateTime,
			}).then(res => {
				console.log(res);
				res.data.cnTime = moment(res.data.createTime).format('YYYY-MM-DD HH:mm:ss');
				this.dailyTaskList = res.data; 
			});
		}
	}
};
</script>

<style lang="scss" scoped>
</style>
